package com.sjsu.aws.configurationMgmt;

/**
 * 
 * @author Pawar Deepali
 * 
 */
public interface ConfigWatcherService {
	/**
	 * Implementation method polls db 
	 * @param pollingPeriod in miliseconds
	 * @param configName name of configuration
	 * @param cfgService
	 */
	public void pollDB(long pollingPeriod, final String configName,
	        final ConfigMgmtServiceImpl cfgService);
	
	/**
	 * 
	 * @param pollingPeriod
	 * @param configName
	 * @throws Exception
	 */
	public void startPolling(long pollingPeriod, String configName)
	        throws Exception;
	

	public boolean isStartWatchingFlag();
	
	public void setStartWatchingFlag(boolean startWatchingFlag);
	
}
